package cn.xiaobai.plugin;

import cn.xiaobai.core.domain.PluginConfig;
import cn.xiaobai.core.domain.factory.InConfFactory;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Author yangdaji
 * @Date 2023/12/11
 * @PackageName cn.xiaobai.plugin
 * @ClassName DemoFactory
 */
@Component
public class DemoFactory extends InConfFactory<Demo> {


    @Override
    public String getType() {
        return "demo";
    }

    @Override
    public String getDescription() {
        return "demo 测试插件";
    }

    @Override
    public List<PluginConfig> getPluginConfig() {
        return Demo.getConfig();
    }

    @Override
    public Demo getInstance() {
        return new Demo();
    }

    @Override
    public Class<Demo> getInstanceType() {
        return Demo.class;
    }
}
